// <%= functions[0].dirPathArr[functions[0].dirPathArr.length-1] %>Api

import { http } from '@/service/request'

<% functions.forEach(function(fn) { -%>
<% Object.keys(fn.methods).forEach(function(method) { -%>
 /**
  * <%= fn.methods[method].summary %>
  * @example import { <%= fn.actionName %> } from '@/service/api/<%= functions[0].dirPathArr[0] %>/<%= functions[0].dirPathArr[1] %>'
  */
export const <%= fn.actionName %> = (<% if (method.toLowerCase() === 'get') { %>params, config<% } else { %>data, config<% } %> = {}) => http.<%= capitalizeFirstLetter(method) %>('<%= fn.methods[method].path %>', <% if (method.toLowerCase() === 'get') { %> { params, ...config } <% } else { %> data, config <% } %>);
<% }); %>
<% }); %>